package com.bdqn.mzc.service;

import com.bdqn.mzc.model.ErrorCodes;
import com.bdqn.mzc.model.Indent;
import com.bdqn.mzc.model.User;
import com.bdqn.mzc.model.dto.UpdateUserDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;


public interface UserService {

    User login(String account,String password) throws Exception;

    List<User> selectList();

    int register(String email,String password,String code)throws Exception;


    String sandCode(String email) throws Exception;


    int updatePersonal(UpdateUserDto updateUserDto, Integer id);

    User selectPersonalById(Integer id);


    int buyTicket(HttpServletResponse response, HttpServletRequest request, Integer scenicspotId) throws Exception;


    List<Indent> selectindentAll();

    int updateIndentById(Integer id);

    int updateIndentById2(Integer id);

    int  deleteIndentById(Integer id) throws Exception;

    int insertValuate(Integer IndentId,double grade,String content) throws Exception;

}
